import { defHttp } from '/@/utils/http/axios'
import { ErrorMessageMode } from '/#/axios'

enum Api {
 List='/api/website/admin/free/list',
 Delete='/api/website/admin/free/delete',
 Pause='/api/website/admin/free/pause',
 Revoke='/api/website/admin/free/revoke',
 Online='/api/website/admin/free/online',
}


//获取免费控制列表
export function freeList(params:any) {
  return defHttp.get(
    { url: Api.List,
      params,
     },
  )
}
//删除
export function deleteRows(params:any) {
  return defHttp.post(
    { url: Api.Delete,
      params,
     },
  )
}
//暂停
export function pause(params:any) {
  return defHttp.post(
    { url: Api.Pause,
      params,
     },
  )
}
//撤回
export function revoke(params:any) {
  return defHttp.post(
    { url: Api.Revoke,
      params,
     },
  )
}
//上线
export function online(params:any) {
  return defHttp.post(
    { url: Api.Online,
      params,
     },
  )
}
